package com.example.demo.service;

import com.example.demo.entity.InvokeResult;
import com.example.demo.mapper.novelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.stream.Collectors;

@Service
public class BookQueryService {

    @Autowired
    private novelMapper novelMapper;

    public InvokeResult queryAll(int typeName){


        return new InvokeResult(novelMapper.selectByPrimaryKey(typeName));
    }


}
